package com.lichuang.fruitvarietysm.goods.mapper;

import com.lichuang.fruitvarietysm.goods.entity.GoodsCollection;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author shuaihang
 * @since 2019-06-05
 */
@Repository
public interface GoodsCollectionMapper extends BaseMapper<GoodsCollection> {
    /**
     * 根据商品id查有多少人收藏，即多少人气值
     * @param goods_id
     * @return
     */
    int sCountCollection(@Param("goods_id")Integer goods_id);
}
